package com.atung.dao;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.atung.model.BusCarRide;
import com.atung.provider.BusCarRideProvider;

@Mapper
public interface BusCarRideDAO {

	@InsertProvider(type=BusCarRideProvider.class,method="saveBusCarRideProvider")
	Boolean saveBusCarRide(BusCarRide busCarRide);
	
	
	/**
	 * 根据orderId获取报名信息
	 * @param orderId
	 * @return
	 */
	@Select("select * from bus_car_ride  where order_id=#{orderId} ")
	List<BusCarRide>selectBusCarRideByOrderId(@Param("orderId")Long orderId);
}
